﻿using System;
using System.Collections.Generic;
using System.Text;

using System.Data;

using ISS.CaseStudy.DAL;
using ISS.CaseStudy.Entities;

namespace ISS.CaseStudy.BLL
{
    public class RelatedInformationBLL
    {
        public static DataSet GetAll()
        {
            return RelatedInfoDLL.GetAllInfos();
        }

        public static DataSet GetAllByGolbal()
        {
            return RelatedInfoDLL.GetAllInfosByGolbal();
        }

        public static RelatedInfo GetInfo(string id)
        {
            return RelatedInfoDLL.GetInfo(id);
        }

        public static bool Update(RelatedInfo relatedInfo, out string message)
        {
            return RelatedInfoDLL.Update(relatedInfo, out message);
        }

        public static bool Insert(RelatedInfo relatedInfo, out string message, out int id)
        {
            return RelatedInfoDLL.Insert(relatedInfo, out message, out id);
        }

        public static bool Delete(string id)
        {
            return RelatedInfoDLL.Delete(id);
        }
    }
}
